<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSysMenuMetaTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('basedata_menu_meta', function (Blueprint $table) {
            $table->integer('id', true);
            $table->string('title', 50);
            $table->string('icon', 50)->nullable();
            $table->string('type', 50)->nullable()->comment('menu，link，iframe');
            $table->tinyInteger('affix')->default(0)->comment('true,false');
            $table->tinyInteger('hidden')->default(0)->comment('隐藏');
            $table->string('active', 50)->nullable()->comment('?');
            $table->tinyInteger('fullpage')->default(0)->comment('全屏');
            $table->tinyInteger('hiddenBreadcrumb')->default(0)->comment('面包栏隐藏');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('basedata_menu_meta');
    }
}
